// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import QtQuick 1.0

Rectangle {
    id:root
    width: image.width
    height: image.height/2
    clip: true
    property alias text: text.text
    signal click

    Image {
        id: image
        fillMode: Image.Tile
        x: 0
        y: 0
        width: 75
        source: "images/money/button.png"
    }

    Text {
        id: text
        x: 0
        y: 11

        text: qsTr("Bet")
        font.pixelSize: 14
        color: "white"
        anchors.fill: root
        horizontalAlignment: Text.AlignHCenter
        verticalAlignment: Text.AlignVCenter

    }

    MouseArea{
        anchors.fill: root
        hoverEnabled: true
        acceptedButtons: Qt.LeftButton
        onEntered: {
            image.y = -image.height/2
        }
        onExited: {
            image.y = 0
        }
        onClicked: click()


    }
}
